﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YTCMS.Domain.Entities
{
    [Table("hotel")]
    public partial class hotel
    {
        [Key]
        public int Id { get; set; }
        public string Name { get; set; }
        [RegularExpression(@"^\d+$", ErrorMessage = "请输入正确的数字！")]
        public Nullable<int> Leve { get; set; }
        public Nullable<int> CategoryId { get; set; }
        [ForeignKey("CategoryId")]
        public virtual category category { get; set; }
        public string CityId { get; set; }
        
        [RegularExpression(@"^(-)?(([1-9]{1}\d*)|([0]{1}))(\.(\d){1,2})?$", ErrorMessage = "请输入正确的金额！")]
        public Nullable<decimal> MinConsume { get; set; }
        [RegularExpression(@"^\d+$", ErrorMessage = "请输入正确的数字！")]
        public Nullable<int> SumRoom { get; set; }
        
        [RegularExpression(@"^\d+$", ErrorMessage = "请输入正确的数字！")]
        public Nullable<int> SumBed { get; set; }
        public Nullable<sbyte> IsBreakfast { get; set; }
        public Nullable<sbyte> IsLunch { get; set; }
        public Nullable<sbyte> IsSupper { get; set; }
        public string Address { get; set; }
        public string Remark { get; set; }
        public string Remark2 { get; set; }
        public string Remark3 { get; set; }
        public Nullable<sbyte> IsPush { get; set; }

        public Nullable<int> State { get; set; }
    }
}
